package com.nanjia.boot.product.spec.value.converter;

import com.nanjia.boot.product.spec.value.model.entity.SpecValue;
import com.nanjia.boot.product.spec.value.model.form.SpecValueForm;
import org.mapstruct.Mapper;

/**
 * 规格值对象转换器
 *
 * @author 周洋
 * @since 2025-07-09 17:16
 */
@Mapper(componentModel = "spring")
public interface SpecValueConverter{

    SpecValueForm toForm(SpecValue entity);

    SpecValue toEntity(SpecValueForm formData);
}